
from selenium import webdriver
import time

"""path = 'chromedriver.exe'

browser = webdriver.Chrome(path)
url = 'http://www.ranwenw.com/xiaoshuodaquan/'
browser.get(url)

# 元素定位
list = browser.find_elements_by_css_selector('.novellist ui li a')
# 睡眠2秒
#time.sleep(3)
# 点击第一个文章
list[0].click()
#time.sleep(3)

alist = browser.find_elements_by_css_selector('#list dl dd a')
# 点击第一个dd 中的a标签
name = alist[9].text
alist[9].click()
# time.sleep(3)
novel = browser.find_element_by_css_selector('#content')

file = open(file=name+'.txt',mode='w',encoding='utf-8')
file.write(novel.text)
file.close()"""
file = open(file='1、玩家还有三天到达战场！.txt',mode='r',encoding='utf-8')

io = file.readline()
print(io)

file.close()
# browser.quit()


